package com.lhdx.practical.service.impl;

import com.google.gson.internal.$Gson$Preconditions;
import com.lhdx.practical.bean.Performance;
import com.lhdx.practical.dao.PerformanceDao;
import com.lhdx.practical.service.PerformanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("PerformanceService")
public class PerformanceServiceImpl implements PerformanceService {
    @Autowired
    private PerformanceDao performanceDao;

    @Override
    public void save(Performance performance) {
        performanceDao.save(performance);
    }

    @Override
    public Performance findById(long id) {
        return performanceDao.findById(id);
    }

    @Override
    public Performance findByPersonidAndMid(long personid,long mid) {
        return performanceDao.findByPersonidAndMid(personid,mid);
    }

    @Override
    public List<Performance> findAllByPersonidAndGradeid(long personid, long gradeid) {
        return performanceDao.findAllByPersonidAndGradeid(personid,gradeid);
    }
}
